const mongoose = require('mongoose')
// 创建文档结构
const UserSchema = new mongoose.Schema({
  username: String,
  password: String
})
// 创建模型对象
const UserModel = mongoose.model('user', UserSchema)
// 暴露
module.exports = UserModel
